#!/bin/bash

appName=joolun-gateway

# 获取进程号
pid=`ps -ef | grep java| grep $appName | grep -v grep | grep -v PPID | awk '{print $2}'`

# 遍历进程号使用kill-9 结束进程
for i in $pid
  do
    echo "Kill the $appName pid [ $i ]"
    kill -9 $i
  done
